package com.yeheng.inteceptor;

import org.springframework.web.filter.HiddenHttpMethodFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @PackgeName: com.yeheng.inteceptor
 * @ClassName: MyHiddenMethodFilter
 * @Author: YH
 * Date: 2021/1/1 15:51
 * project name: homework1
 * @Version:
 * @Description:
 */
@WebFilter("/*")
public class MyHiddenMethodFilter extends HiddenHttpMethodFilter {

    public MyHiddenMethodFilter() {
    }

    @Override
    public void setMethodParam(String methodParam) {
        super.setMethodParam(methodParam);
    }

    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
        super.doFilterInternal(request, response, filterChain);
    }
}
